package com.zenithsun.news.news.model;

// default package

import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;

import com.alibaba.fastjson.annotation.JSONField;
import com.zenithsun.news.newscolumns.model.NewsColumns;

/**
 * NewsInfo entity. @author MyEclipse Persistence Tools
 */

public class NewsInfo implements java.io.Serializable {

	// Fields

	private String id;
	private String newstype;
	private NewsColumns newsColumns;
	private String title;
	private String content;
	private String coverPath;
	private String correspondent;
	private String photographer;
	private String editor;
	private String keyword;
	private String remark;
	private Short isTop;
	private Short isStriking;
	private Short isCarousel;
	@JSONField(format = "yyyy-MM-dd")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd")
	private Date publishTime;
	private String publishGroup;
	private Date showTime;
	private String type;

	// Constructors

	/** default constructor */
	public NewsInfo() {
	}

	public NewsInfo(String id, String newstype, NewsColumns newsColumns,
			String title, String content, String coverPath,
			String correspondent, String photographer, String editor,
			String keyword, String remark, Short isTop, Short isStriking,
			Short isCarousel, Date createTime, Date publishTime,
			String publishGroup, Date showTime, String type, Set newsdetailinfos) {
		super();
		this.id = id;
		this.newstype = newstype;
		this.newsColumns = newsColumns;
		this.title = title;
		this.content = content;
		this.coverPath = coverPath;
		this.correspondent = correspondent;
		this.photographer = photographer;
		this.editor = editor;
		this.keyword = keyword;
		this.remark = remark;
		this.isTop = isTop;
		this.isStriking = isStriking;
		this.isCarousel = isCarousel;
		this.createTime = createTime;
		this.publishTime = publishTime;
		this.publishGroup = publishGroup;
		this.showTime = showTime;
		this.type = type;
	}

	// Property accessors

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNewstype() {
		return this.newstype;
	}

	public void setNewstype(String newstype) {
		this.newstype = newstype;
	}

	public void setShowTime(Date showTime) {
		this.showTime = showTime;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getCoverPath() {
		return this.coverPath;
	}

	public void setCoverPath(String coverPath) {
		this.coverPath = coverPath;
	}

	public String getCorrespondent() {
		return this.correspondent;
	}

	public void setCorrespondent(String correspondent) {
		this.correspondent = correspondent;
	}

	public String getPhotographer() {
		return this.photographer;
	}

	public void setPhotographer(String photographer) {
		this.photographer = photographer;
	}

	public String getEditor() {
		return this.editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public String getKeyword() {
		return this.keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Short getIsTop() {
		return this.isTop;
	}

	public void setIsTop(Short isTop) {
		this.isTop = isTop;
	}

	public Short getIsStriking() {
		return this.isStriking;
	}

	public void setIsStriking(Short isStriking) {
		this.isStriking = isStriking;
	}

	public Short getIsCarousel() {
		return this.isCarousel;
	}

	public void setIsCarousel(Short isCarousel) {
		this.isCarousel = isCarousel;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getPublishTime() {
		return this.publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}

	public String getPublishGroup() {
		return this.publishGroup;
	}

	public void setPublishGroup(String publishGroup) {
		this.publishGroup = publishGroup;
	}

	public Date getShowTime() {
		return this.showTime;
	}

	public void setShowTime(Timestamp showTime) {
		this.showTime = showTime;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public NewsColumns getNewsColumns() {
		return newsColumns;
	}

	public void setNewsColumns(NewsColumns newsColumns) {
		this.newsColumns = newsColumns;
	}

}